package cn.javabb.core.service.biz;

import cn.javabb.core.base.BaseService;
import cn.javabb.core.entity.biz.UserHideContentDO;
import org.springframework.stereotype.Service;

@Service
public class UserHideContentService extends BaseService<UserHideContentDO> {

    /**
     * 是否展示隐藏内容
     * @param userId
     * @param hideContentId
     * @return
     */
    public boolean showHideContent(Integer userId,Integer hideContentId){
        UserHideContentDO userHideContentDO = new UserHideContentDO();
        userHideContentDO.setHideContentId(hideContentId).setUserId(userId);
        if(this.queryCountByWhere(userHideContentDO)>0){
            return true;
        }
        return false;
    }


}
